home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / AGA Classes 1.2 / AGADemo / AGADemo Sources / AGADemoApp.h < prev    next >
Encoding:
Text File  |  1996-05-21  |  1.3 KB  |  50 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    AGADemoApp.h        ©1994-1995 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LApplication.h>
  8. #include <LListener.h>
  9. #include <LView.h>
  10.  
  11. class    AGADemoApp : public LApplication, public LListener
  12. {
  13.     public:
  14.         AGADemoApp ();                        // constructor registers all PPobs
  15.         virtual ~AGADemoApp ();        // stub destructor
  16.     
  17.         // this overriding function performs application functions
  18.         
  19.         virtual Boolean ObeyCommand(CommandT inCommand, void* ioParam);    
  20.     
  21.         // this overriding function returns the status of menu items
  22.         
  23.         virtual void FindCommandStatus (CommandT inCommand,
  24.                                                                         Boolean &outEnabled, Boolean &outUsesMark,
  25.                                                                         Char16 &outMark, Str255 outName);
  26.  
  27.         virtual void ShowAboutBox();
  28.         
  29.         virtual void ListenToMessage (MessageT inMessage, void *ioParam);
  30.         
  31.     protected:
  32.  
  33.         virtual void StartUp();        // overriding startup functions
  34. };
  35.  
  36. class CProgressAnimator : public LView, public LPeriodical
  37. {
  38.     public:
  39.         enum { class_ID = 'xxx1' };
  40.         static CProgressAnimator* CreateProgressAnimatorStream (LStream* inStream);
  41.         
  42.         CProgressAnimator (LStream *inStream);
  43.         
  44.         virtual void SpendTime (const EventRecord &inMacEvent);
  45.     
  46.     protected:
  47.         virtual void FinishCreateSelf ();
  48. };
  49.  
  50.